#ifndef HISTREAMING_H_
#define HISTREAMING_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <pthread.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>

#include <mpp_help.h>
#include <aic_mng.h>
#include "sample_comm.h"

#include <memory.h>
/* Link Header Files */
#include "status_code.h"
#include "link_service.h"
#include "link_platform.h"
#include "link_agent.h"
#include <sys/shm.h>
// #include "yolov2_hand_detect.h"

#define RTSP_CH_PORT_ID   554
#define RTSP_CH_NAME  "h264"
#define IPC_KEY 0x20190112

enum {
	PROPERTY_LIST = 0,
	PROPERTY_VIDEO_DEVICE_NAME,
	PROPERTY_VIDEO_DEVICE_STATUS,
	PROPERTY_VIDEO_CHANNEL_INFO,
	PROPERTY_Drection,
	Crack_Num,
	PROPERTY_MAX,
};

typedef struct shm_struct{
    int num;
    int dis[512];
}shm_struct;

#define PROPTY_STR_LEN_MAX 255
typedef struct hiStreamingAic_{
	LinkPlatform *link;
	LinkAgent *linkAgent;
	LinkService* videoSvr;
	char *propValueTable[PROPERTY_MAX];
	bool isVoOpened;
	char mac[32];
	bool working;
	int shm_id;
	shm_struct* shm_start;
	pthread_t thrdId;
}hiStreamingAic;




#endif
